php get constant value

69

php variable constant -

if (...) {
     const FOO = 'BAR';    // Invalid
 }
 // but
 if (...) {
     define('FOO', 'BAR'); // Valid
 }

Comments

Submit
0 Comments